Skip to content

ci(ui-tests): Cold boot the critical UI test emulator instead of caching the AVD - #6720

Merged
romtsn merged 1 commit into
mainfrom
ci/drop-avd-cache
Nov 20, 2026
Merged

romtsn merged 1 commit into
mainfrom
ci/drop-avd-cache

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

📜 Description

The UI Tests Critical workflow no longer caches the AVD snapshot. The Run tests step creates the AVD and cold boots the emulator itself.

The AVD cache and Create AVD and generate snapshot for caching steps are gone. So are Install emulator and the cmdline-tools version output, which only fed the cache key. android-emulator-runner still installs the emulator from the matrix channel. The cmdline-tools update stays, because it fixes avdmanager for android-37.x (ReactiveCircus/android-emulator-runner#482). disk-size: 4096M moves to Run tests, since that step now creates the AVD.

💡 Motivation and Context

Cold booting is faster than restoring the cache. The numbers below are from the API 37 job of run 43046054690. The ~48s SDK and system image install is the same either way and left out.

Emulator ready after
Cache hit: restore (44.0s) + launch from snapshot (12.4s) ~56s
Cold boot: create AVD (1.1s) + cold boot (43.6s) ~45s
Cache miss: cold boot + snapshot save + relaunch, then 26s cache upload ~66s + 26s

Each image takes 2.4–4.1 GB of cache, and the avd-* caches use about 24 GB of the repo's 50 GB Actions cache.

📝 Checklist

  • No breaking change or entry added to the changelog.

🔮 Next steps

  • Open question: after a cold boot, the system can still be busy with first-boot work when Maestro starts. MAESTRO_DRIVER_STARTUP_TIMEOUT: 60000 stays for that reason. If flakes go up after merging, add a wait-for-idle step rather than bringing the cache back.
  • agp-matrix.yml uses the same AVD cache pattern (avd-api-30-x86_64-google_apis, ~1.6 GB) and is not changed here, because only the critical UI tests were measured.

#skip-changelog

via roman.

--

View Session [Sentry]

…ing the AVD

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit d0cb372.

The model rated this change low. It was raised to medium because:

  • R6: build or release configuration changed: .github/workflows/integration-tests-ui-critical.yml

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 20, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.65.0 (1) release

⚙️ sentry-android Build Distribution Settings

@romtsn
romtsn marked this pull request as ready for review November 20, 2026 16:57
@romtsn
romtsn requested review from a team and adinauer as code owners November 20, 2026 16:57
@romtsn
romtsn requested review from 0xadam-brown and runningcode and removed request for a team November 20, 2026 16:57
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 20, 2026
@romtsn
romtsn merged commit 4ab0ce0 into main Nov 20, 2026
52 checks passed
@romtsn
romtsn deleted the ci/drop-avd-cache branch November 20, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants